<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Ueditor</title>
<!--    <script>window.UEDITOR_HOME_URL = '/ue/';</script>-->
    <script src="/js/ly.import.js"></script>
    <script src="/ue/ueditor.config.js"></script>
    <script src="/ue/ueditor.all.min.js"></script>
</head>
<body>
<div id="app">
    <dl>
        <dt>ueditor 文件上传</dt>
        <dd>1.下载并导入 ueditor1_x_x_x-utf8-jsp
        <dd>2. 查看请求日志 ==> controller.jsp
        <dd>3. 定义controller.jsp?action=config 返回结构参考: 后端配置项说明 http://fex.baidu.com/ueditor/#server-config
        <dd>4. 定义controller.jsp?action=update 返回结构参考: 后端请求规范   http://fex.baidu.com/ueditor/#dev-request_specification
    </dl>
    <textarea id="myEditor">这里是原始的textarea中的内容，可以从数据中读取</textarea>
</div>
<script>
    var v = new Vue({
        el : "#app",
        data:{
            editor : null
        },
        created(){
            this.editor = UE.getEditor('myEditor');
        }
    })
</script>
</body>
</html>